package com.supermarket.api.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 首页广告表
 * @author 李其伟
 * @date 2023/10/23
 */
@Data
@Entity
@Table(name = "sm_advertise")
@org.hibernate.annotations.Table(appliesTo = "sm_advertise",comment="首页广告表")
public class AdvertiseEntity extends BaseEntity{
    @Column(name = "name", columnDefinition = " varchar(256) comment '标题' ")
    private String name;
    @Column(name = "pic", columnDefinition = " varchar(512) comment '内容图片' ")
    private String pic;
    @Column(name = "start_time", columnDefinition = " datetime comment '开始时间' ")
    private Date startTime;
    @Column(name = "end_time", columnDefinition = " datetime comment '结束时间' ")
    private Date endTime;
    @Column(name = "publish_status", columnDefinition = " int(11) comment '上架状态：0->下架；1->上架' ")
    private Integer publishStatus;
    @Column(name = "click_count", columnDefinition = " int(11) comment '点击数' ")
    private Integer clickCount;
    @Column(name = "order_count", columnDefinition = " int(11) comment '下单数' ")
    private Integer orderCount;
    @Column(name = "url", columnDefinition = " varchar(512) comment '链接地址' ")
    private String url;
    @Column(name = "note", columnDefinition = " varchar(512) comment '备注' ")
    private String note;
    @Column(name = "sort", columnDefinition = " int(11) comment '排序' ")
    private Integer sort;

}
